package cn.ym.mall.entity;

import java.io.Serializable;

/**
 * 角色类
 */
public class Role implements Serializable {
    private Integer rid;     //  角色id
    private String rname;   //  角色名

    public Role() {
    }

    public Role(String rname) {
        this.rname = rname;
    }

    public Role(Integer rid, String rname) {
        this.rid = rid;
        this.rname = rname;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    @Override
    public String toString() {
        return "Role{" +
                "rid='" + rid + '\'' +
                ", rname='" + rname + '\'' +
                '}';
    }
}
